package org.gthelper.security;

import java.util.Map;


public interface Iidentity
{
	public Map<String, Object> initKey()throws Exception;
	public byte[] getPrivateKey(Map<String, Object> keyMap)throws Exception;
	public byte[] getPublicKey(Map<String, Object> keyMap)throws Exception;
	public byte[] encryptByPrivateKey(byte[] data, byte[] key)throws Exception;
	public byte[] encryptByPublicKey(byte[] data, byte[] key)throws Exception;
	public byte[] sign(byte[] data, byte[] privateKey)throws Exception;
}